home *** CD-ROM | disk | FTP | other *** search
/ BCI NET / BCI NET Dec 94.iso / archives / networking / misc / sana2.lha / sana2 / examples / skeleton / skeleton.h < prev   
Encoding:
C/C++ Source or Header  |  1991-11-18  |  954 b   |  43 lines

  1. /*
  2. **  $Id: skeleton.h,v 1.1 91/10/29 11:51:20 dlarson Exp $
  3. **
  4. **  SANA-II driver utility skeleton header.
  5. **
  6. **  Copyright 1991 Commodore-Amiga, Inc.
  7. **
  8. **  This code may be modified and used freely on Amiga computers.
  9. **
  10. */
  11.  
  12. #include <exec/types.h>
  13. #include <exec/libraries.h>
  14. #include <exec/memory.h>
  15. #include <libraries/dos.h>
  16. #include <pragmas/exec_pragmas.h>
  17. #include <clib/exec_protos.h>
  18. #include <devices/sana2.h>
  19.  
  20. /*
  21. **  globals
  22. */
  23. extern struct Library *SysBase;
  24. extern struct MsgPort *DevPort;
  25. extern struct IOSana2Req *IOB1;
  26. extern int    DeviceOpen;
  27. extern long   DevBits;
  28. /*
  29. **  prototypes
  30. */
  31. int initdev(void);
  32. void closedev(void);
  33. BOOL CopyToBuff(VOID *in, VOID *out, LONG n);
  34. BOOL CopyFromBuff(VOID *in, VOID *out, LONG n);
  35.  
  36. /*
  37. **  To make life easy on non-sending/receiving utilities
  38. */
  39. #ifdef NOBUFFS
  40. BOOL CopyToBuff(void *foo, void *bar, long n){return(FALSE);}
  41. BOOL CopyFromBuff(void *foo, void *bar, long n){return(FALSE);}
  42. #endif
  43.